//
//  NSAttributedString+Category.h
//  PKWSevers
//
//  Created by Seven on 16/5/23.
//  Copyright © 2016年 Seven. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSAttributedString (Category)
//由于系统计算富文本的高度不正确，自己写了方法
- (CGFloat)heightWithContainWidth:(CGFloat)width;


+ (NSMutableAttributedString *)generateAttriuteStringWithStr:(NSString *)str WithColor:(UIColor *)color WithFont:(UIFont *)font;

/**生成htmlAttriuteString*/
+ (NSMutableAttributedString *)generateAttriuteStringWithHtml:(NSString *)htmlString;

- (CGRect)rectWithWidth:(CGFloat)width;

- (CGRect)rectWithHeight:(CGFloat)height;

- (CGRect)rectWithSize:(CGSize)size;

@end

@interface NSMutableAttributedString (Shadow)

- (void)setShadow;
- (void)setShadowWithColor:(UIColor *)color;

@end
